<?php
namespace app\validate;

use think\Validate;

class Transfer extends Validate
{
    protected $rule = [
        'to' => 'require',
        'num' => 'require|number|gt:0',
        'type' => 'require',
        'token' => 'require',
    ];

    protected $message = [
        'to.require' => '请输入对方地址',
        'num.require' => '请输入转账数量',
        'num.number' => '转账数量错误',
        'num.gt' => '转账数量错误',
        'type.require' => '请选择转账类型',
        'token.require' => '请输入支付密码',
    ];
}